package com.lidroid.xutils_sample.core;

import com.lidroid.xutils.bitmap.core.BitmapDisplayConfig;
import org.junit.Test;

import static org.junit.Assert.*;

public class BitmapDisplayConfigTest {

    private final BitmapDisplayConfig bitmapDisplayConfig = new BitmapDisplayConfig();

    @Test
    public void getBitmapWidth() {
        bitmapDisplayConfig.setBitmapWidth(1);
        int num = bitmapDisplayConfig.getBitmapWidth();
        assertEquals(1, num);
    }

    @Test
    public void getBitmapHeight() {
        bitmapDisplayConfig.setBitmapHeight(1);
        int num = bitmapDisplayConfig.getBitmapHeight();
        assertEquals(1, num);
    }

    @Test
    public void getAnimationType() {
        bitmapDisplayConfig.setAnimationType(1);
        int num = bitmapDisplayConfig.getAnimationType();
        assertEquals(1, num);
    }
}